# n = 0
# while n < 10:
#     print(n)
#     n+=1

# def func(n):
#     if n ==10:
#         return
#     print(n)
#     n+=1
#     func(n)
#
# func(0)


l = [1,2,[3,[4,[5,[6,[7,[8,[9,10,11]]]]]]]]

l = [1,2,3,[4,5]]

for i in l:
    if type(i) ==list:
        for a in i:
            if type(a) ==list:
                pass
                # .....
                # .....
            else:
                print(a)
    else:
        print(i)


# def func(lst):
#     for i in lst:
#         if type(i) == list:
#             func(i)
#         else:
#             print(i)
#
# func(l)


# l1=[1,2,3,4,5]
#
# l2 = [i*i for i in l1 if True]
# print(l2)